
public class TestMatcher01 {

	 public static void main(String[] args){
	        String str = "1234567abc";
	        String regex = "\\w{10,}";
//	        Pattern pat = Pattern.compile(regex);
//	        Matcher mat = pat.matcher(str);
//	        System.out.println(mat.matches());
	        System.out.println(str.matches(regex));
	    }

}
